package com.qiaofang.dataprocessing.stub.facade;

import com.qiaofang.common.request.DataRequest;
import com.qiaofang.common.response.DataResultResponse;
import com.qiaofang.dataprocessing.stub.bean.request.FirsthandUpDownProcessingRequest;
import com.qiaofang.dataprocessing.stub.bean.request.PropertyUpDownProcessingRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "dataprocessing",url="${feign.url.dataprocessing}")
@RequestMapping("/upDownProcessing")
@Api(tags = "upDownProcessing", description = "房源上下架处理")
public interface UpDownProcessingFacade {

    @RequestMapping(value = "/propertyUuidList", method = RequestMethod.POST)
    @ApiOperation(value = "获取上架二手房uuid集合", notes = "获取上架二手房uuid集合")
    DataResultResponse<List<String>> propertyUuidList(DataRequest<PropertyUpDownProcessingRequest> request);

    @RequestMapping(value = "/estateUuidList", method = RequestMethod.POST)
    @ApiOperation(value = "获取上架新房uuid集合", notes = "获取上架新房uuid集合")
    DataResultResponse<List<String>> estateUuidList(DataRequest<FirsthandUpDownProcessingRequest> request);

}
